﻿

namespace ArchitectureExample.Domain.Users
{
    using Patterns4Net.Attributes;

    public class Address
    {
        public string Street { get; set; }

        public string City { get; set; }

        public string Country { get; set; }

        public string PostCode { get; set; }
    }

    /// <summary>
    /// Provides helper methods for validation of Address properties.
    /// </summary>
    [Infrastructural]
    public class AddressValidationHelper
    {
        public static bool IsValidPostCode(Address address)
        {
            return address.PostCode.Length == 6;
        }
    }
}
